Optimal. Leaf size=268 \[ -\frac{(e x)^{m+1} (b c-a d) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{b x^n}{a}\right ) (A b (b c (m-n+1)-a d (m+n+1))-a B (b c (m+1)-a d (m+2 n+1)))}{a^2 b^3 e (m+1) n}-\frac{d (e x)^{m+1} (A b (2 b c (m+1)-a d (m+n+1))-a B (2 b c (m+n+1)-a d (m+2 n+1)))}{a b^3 e (m+1) n}-\frac{d^2 x^{n+1} (e x)^m (A b (m+n+1)-a B (m+2 n+1))}{a b^2 n (m+n+1)}+\frac{(e x)^{m+1} (A b-a B) \left (c+d x^n\right )^2}{a b e n \left (a+b x^n\right )} \]
[Out]
_______________________________________________________________________________________
Rubi [A] time = 1.66299, antiderivative size = 268, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 31, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.161 \[ -\frac{(e x)^{m+1} (b c-a d) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{b x^n}{a}\right ) (A b (b c (m-n+1)-a d (m+n+1))-a B (b c (m+1)-a d (m+2 n+1)))}{a^2 b^3 e (m+1) n}-\frac{d (e x)^{m+1} (A b (2 b c (m+1)-a d (m+n+1))-a B (2 b c (m+n+1)-a d (m+2 n+1)))}{a b^3 e (m+1) n}-\frac{d^2 x^{n+1} (e x)^m (A b (m+n+1)-a B (m+2 n+1))}{a b^2 n (m+n+1)}+\frac{(e x)^{m+1} (A b-a B) \left (c+d x^n\right )^2}{a b e n \left (a+b x^n\right )} \]
Antiderivative was successfully verified.
[In] Int[((e*x)^m*(A + B*x^n)*(c + d*x^n)^2)/(a + b*x^n)^2,x]
[Out]
_______________________________________________________________________________________
Rubi in Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] rubi_integrate((e*x)**m*(A+B*x**n)*(c+d*x**n)**2/(a+b*x**n)**2,x)
[Out]
_______________________________________________________________________________________
Mathematica [A] time = 1.88662, size = 227, normalized size = 0.85 \[ \frac{x (e x)^m \left (\frac{(a d-b c) \, _2F_1\left (1,\frac{m+1}{n};\frac{m+n+1}{n};-\frac{b x^n}{a}\right ) (A b (b c (m-n+1)-a d (m+n+1))+a B (a d (m+2 n+1)-b c (m+1)))}{a^2 (m+1) n}+\frac{b^2 c (-2 a A d-a B c+A b c)}{a n \left (a+b x^n\right )}+b d \left (A d \left (\frac{a}{a n+b n x^n}+\frac{1}{m+1}\right )+B \left (2 c \left (\frac{a}{a n+b n x^n}+\frac{1}{m+1}\right )+\frac{d x^n}{m+n+1}\right )\right )+a B d^2 \left (-\frac{a}{a n+b n x^n}-\frac{2}{m+1}\right )\right )}{b^3} \]
Antiderivative was successfully verified.
[In] Integrate[((e*x)^m*(A + B*x^n)*(c + d*x^n)^2)/(a + b*x^n)^2,x]
[Out]
_______________________________________________________________________________________
Maple [F] time = 180., size = 0, normalized size = 0. \[ \text{hanged} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] int((e*x)^m*(A+B*x^n)*(c+d*x^n)^2/(a+b*x^n)^2,x)
[Out]
_______________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \[ -{\left ({\left (a^{2} b d^{2} e^{m}{\left (m + n + 1\right )} + b^{3} c^{2} e^{m}{\left (m - n + 1\right )} - 2 \, a b^{2} c d e^{m}{\left (m + 1\right )}\right )} A -{\left (a^{3} d^{2} e^{m}{\left (m + 2 \, n + 1\right )} - 2 \, a^{2} b c d e^{m}{\left (m + n + 1\right )} + a b^{2} c^{2} e^{m}{\left (m + 1\right )}\right )} B\right )} \int \frac{x^{m}}{a b^{4} n x^{n} + a^{2} b^{3} n}\,{d x} + \frac{{\left (m n + n\right )} B a b^{2} d^{2} e^{m} x e^{\left (m \log \left (x\right ) + 2 \, n \log \left (x\right )\right )} +{\left ({\left ({\left (m^{2} + m{\left (n + 2\right )} + n + 1\right )} b^{3} c^{2} e^{m} - 2 \,{\left (m^{2} + m{\left (n + 2\right )} + n + 1\right )} a b^{2} c d e^{m} +{\left (m^{2} + 2 \, m{\left (n + 1\right )} + n^{2} + 2 \, n + 1\right )} a^{2} b d^{2} e^{m}\right )} A -{\left ({\left (m^{2} + m{\left (n + 2\right )} + n + 1\right )} a b^{2} c^{2} e^{m} - 2 \,{\left (m^{2} + 2 \, m{\left (n + 1\right )} + n^{2} + 2 \, n + 1\right )} a^{2} b c d e^{m} +{\left (m^{2} + m{\left (3 \, n + 2\right )} + 2 \, n^{2} + 3 \, n + 1\right )} a^{3} d^{2} e^{m}\right )} B\right )} x x^{m} +{\left ({\left (m n + n^{2} + n\right )} A a b^{2} d^{2} e^{m} +{\left (2 \,{\left (m n + n^{2} + n\right )} a b^{2} c d e^{m} -{\left (m n + 2 \, n^{2} + n\right )} a^{2} b d^{2} e^{m}\right )} B\right )} x e^{\left (m \log \left (x\right ) + n \log \left (x\right )\right )}}{{\left (m^{2} n +{\left (n^{2} + 2 \, n\right )} m + n^{2} + n\right )} a b^{4} x^{n} +{\left (m^{2} n +{\left (n^{2} + 2 \, n\right )} m + n^{2} + n\right )} a^{2} b^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(d*x^n + c)^2*(e*x)^m/(b*x^n + a)^2,x, algorithm="maxima")
[Out]
_______________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \[{\rm integral}\left (\frac{{\left (B d^{2} x^{3 \, n} + A c^{2} +{\left (2 \, B c d + A d^{2}\right )} x^{2 \, n} +{\left (B c^{2} + 2 \, A c d\right )} x^{n}\right )} \left (e x\right )^{m}}{b^{2} x^{2 \, n} + 2 \, a b x^{n} + a^{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(d*x^n + c)^2*(e*x)^m/(b*x^n + a)^2,x, algorithm="fricas")
[Out]
_______________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \[ \text{Timed out} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((e*x)**m*(A+B*x**n)*(c+d*x**n)**2/(a+b*x**n)**2,x)
[Out]
_______________________________________________________________________________________
GIAC/XCAS [F] time = 0., size = 0, normalized size = 0. \[ \int \frac{{\left (B x^{n} + A\right )}{\left (d x^{n} + c\right )}^{2} \left (e x\right )^{m}}{{\left (b x^{n} + a\right )}^{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In] integrate((B*x^n + A)*(d*x^n + c)^2*(e*x)^m/(b*x^n + a)^2,x, algorithm="giac")
[Out]